# files
SRCDEP = rte.cpp rte_.cpp
SRCGEN = application.cpp
OBJDEP = $(SRCDEP:.cpp=.o)
OBJGEN = $(SRCGEN:.cpp=.o)
OUT = librte.a

# options
SOURCEDEP = ../../src/win32/
SOURCEGEN = ../../src/
INCLUDES  = -I..\..\include -I..\..\include\win32

# compiler
CC = g++

$(OUT):	$(OBJDEP) $(OBJGEN)
	ar rcs $(OUT) $(OBJDEP) $(OBJGEN)

$(OBJDEP): %.o:	$(SOURCEDEP)%.cpp
	$(CC) -c $(INCLUDES) $< -o $@

$(OBJGEN): %.o:	$(SOURCEGEN)%.cpp
	$(CC) -c $(INCLUDES) $< -o $@

clean:
	rm *.o

